﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace ChinaClipping.ClippingMaster.Model
{
    public class HttpInfo
    {
        private string _httpurl ;
        private NetworkCredential _credential;
        private string _user;
        private string _password;

        public string User
        {
            get { return _user; }
            set { _user = value; }
        }
       
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

        public HttpInfo(string url, string userName, string password)
       {
            this._httpurl =url;
            _user = userName;
            _password = password;
           this._credential =new NetworkCredential (userName ,password );
       }

        /// <summary>
        /// 获取或设置上传剪报FTP地址
        /// </summary>
        public string HttpAddress
        {
            get { return _httpurl; }
            set { _httpurl = value; }
        }
       /// <summary>
       /// 获取身份验证方案
       /// </summary>
        public ICredentials Credential
        {
            get { return this._credential; }
        }

		/// <summary>
		/// xml文件的保存路径
		/// </summary>
		public string XmlSavePath { get; set; }
    }
}
